/*
 *    Copyright (c) 2018-2025, lengleng All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions are met:
 *
 * Redistributions of source code must retain the above copyright notice,
 * this list of conditions and the following disclaimer.
 * Redistributions in binary form must reproduce the above copyright
 * notice, this list of conditions and the following disclaimer in the
 * documentation and/or other materials provided with the distribution.
 * Neither the name of the pig4cloud.com developer nor the names of its
 * contributors may be used to endorse or promote products derived from
 * this software without specific prior written permission.
 * Author: lengleng (wangiegie@gmail.com)
 */

package com.pig4cloud.pig.generator.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 购物车表
 *
 * @author pig code generator
 * @date 2021-07-20 15:32:58
 */
@Data
@TableName("oms_cart_item")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "购物车表")
public class OmsCartItem extends Model<OmsCartItem> {
private static final long serialVersionUID = 1L;

    /**
     * 
     */
    @TableId
    @ApiModelProperty(value="")
    private Long id;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long productId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long productSkuId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private Long memberId;
    /**
     * 购买数量
     */
    @ApiModelProperty(value="购买数量")
    private Integer quantity;
    /**
     * 添加到购物车的价格
     */
    @ApiModelProperty(value="添加到购物车的价格")
    private BigDecimal price;
    /**
     * 销售属性1
     */
    @ApiModelProperty(value="销售属性1")
    private String sp1;
    /**
     * 销售属性2
     */
    @ApiModelProperty(value="销售属性2")
    private String sp2;
    /**
     * 销售属性3
     */
    @ApiModelProperty(value="销售属性3")
    private String sp3;
    /**
     * 商品主图
     */
    @ApiModelProperty(value="商品主图")
    private String productPic;
    /**
     * 商品名称
     */
    @ApiModelProperty(value="商品名称")
    private String productName;
    /**
     * 商品副标题（卖点）
     */
    @ApiModelProperty(value="商品副标题（卖点）")
    private String productSubTitle;
    /**
     * 商品sku条码
     */
    @ApiModelProperty(value="商品sku条码")
    private String productSkuCode;
    /**
     * 会员昵称
     */
    @ApiModelProperty(value="会员昵称")
    private String memberNickname;
    /**
     * 创建时间
     */
    @ApiModelProperty(value="创建时间")
    private LocalDateTime createDate;
    /**
     * 修改时间
     */
    @ApiModelProperty(value="修改时间")
    private LocalDateTime modifyDate;
    /**
     * 是否删除
     */
    @ApiModelProperty(value="是否删除")
    private Integer deleteStatus;
    /**
     * 商品分类
     */
    @ApiModelProperty(value="商品分类")
    private Long productCategoryId;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String productBrand;
    /**
     * 
     */
    @ApiModelProperty(value="")
    private String productSn;
    /**
     * 商品销售属性:[{"key":"颜色","value":"颜色"},{"key":"容量","value":"4G"}]
     */
	@ApiModelProperty(value="商品销售属性:[{\"key\":\"颜色\",\"value\":\"颜色\"},{\"key\":\"容量\",\"value\":\"4G\"}]")
    private String productAttr;
    }
